/*package Chapter2.Comparing.c2;

public class Test {
    //设Person类中没有getschool()方法
    public void method(Person e)
    //非法,编译时错误
    // System.out.pritnln(e.getschool());
		 if(e  instanceof  Student){
        //将e强制转换为Student类型
        Student me = (Student)e;
        System.out.pritnln(me.getschool());
    }
    public static  void main(Stirng args[]){
        Test t = new Test();
        Student m = new Student();
        t.method(m);
    }

}*/
